import { createApp } from 'vue';
import { setHttpInfo } from './store';
import App from './examples/App.vue';

setHttpInfo('onGetRequestCommonFields', (url, config) => ({
    ok: 1,
    token: 'c51540a09d84df8b41e0b14fb39b6740_1741828804705_5052387_0_e58671a5',
    udid: 'a6d72199-767f-4ecf-9971-debae58671a5',
    userId: 5052387,
    version: 3,
    orgId: 192,
    org_id: 192,
    isAdmin: 1,
}));

setHttpInfo('onBeforeResponse', (result) => {
    if (result.code !== 200 || !result.success) {
        return result;
    }
});

createApp(App).mount('#app');
